export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  labelWidth: 140,
  "column": [
	  {
      "type": "input",
      "label": "车辆编号",
      "prop": "carId",
      hide: true,
      editDisplay: false,
      addDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "车牌",
      "prop": "carNo",
      // editDisabled: true,
      rules: [{
        required: true,
        message: '请输入车牌',
        trigger: 'blur'
      }, {
        min: 6,
        message: '车牌最小长度6位'
      }],
      minlength: 6,
      maxlength: 20,
      "span": 12
    // },	  {
    //   "type": "input",
    //   "label": "品牌",
    //   "prop": "brand",
    //   rules: [{
    //     required: true,
    //     message: '请输入品牌',
    //     trigger: 'blur'
    //   }],
    //   maxlength: 64,
    //   "span": 12
    },	  {
      "type": "select",
      "label": "车辆型号",
      "prop": "carModel",
      rules: [{
        required: true,
        message: '请选择车辆型号',
      }],
      dicUrl: '/admin/dict/type/car_model',
      "span": 12
    },	  {
      "type": "select",
      "label": "证件类型",
      "prop": "cardType",
      "span": 12,
      search: true,
      rules: [{
        required: true,
        message: '请选择证件类型',
        trigger: 'change'
      }],
      dicUrl: "/admin/dict/type/car_card_type"
    },	  {
      "type": "input",
      "label": "证件号",
      "prop": "cardNo",
      rules: [{
        required: true,
        message: '请输入证件号',
      }],
      maxlength: 32,
      "span": 12
    },	  {
      "type": "date",
      "label": "证件起始日期",
      "prop": "cardStartDate",
      "span": 12,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },	  {
      "type": "date",
      "label": "证件过期日期",
      "prop": "cardEndDate",
      "span": 12,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },	  {
      "type": "radio",
      "label": "证件状态",
      "prop": "cardStatus",
      "span": 12,
      value: '1',
      search: true,
      dicUrl: "/admin/dict/type/car_card_status"
    },	  {
      "type": "input",
      "label": "行驶证单位",
      "prop": "company",
      rules: [{
        required: true,
        message: '请输入行驶证单位',
        trigger: 'blur'
      }],
      maxlength: 128,
      "span": 12
    },	  {
      "type": "number",
      "label": "核载人数",
      maxRows: 1000000,
      "prop": "carryPerson",
      "span": 12
    },	  {
      "type": "select",
      "label": "车辆状态",
      "prop": "carStatus",
      rules: [{
        required: true,
        message: '请选择车辆状态',
      }],
      dicData: [
        { label: '正常', value: '0' },
        { label: '维修', value: '1' },
        { label: '待报废', value: '2' },
      ],
      "span": 12
    },	  {
      "type": "input",
      "label": "发动机号",
      "prop": "engineNo",
      maxlength: 64,
      "span": 12
    },	  {
      "type": "input",
      "label": "车架号",
      "prop": "frameNo",
      maxlength: 64,
      "span": 12
    },	  {
      "type": "number",
      "label": "行驶公里数",
      maxRows: 1000000,
      rules: [{
        required: true,
        message: '请输入行驶公里数',
      }],
      "prop": "km",
      "span": 12
    },	  {
      "type": "date",
      "label": "注册日期",
      "prop": "registerDate",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      "span": 12
    },	  {
      "type": "date",
      "label": "发证日期",
      "prop": "issueDate",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      "span": 12
    },	  {
      "type": "date",
      "label": "购入时间",
      "prop": "buyTime",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      "span": 12
    },	  {
      "type": "number",
      "label": "购入价格",
      hide: true,
      maxRows: 1000000,
      "prop": "price",
      "span": 12
    },	  {
      "type": "input",
      "label": "排气量",
      "prop": "exhaust",
      hide: true,
      maxlength: 32,
      "span": 12
    },	  {
      "type": "number",
      "label": "年审周期(月)",
      maxRows: 1000000,
      hide: true,
      "prop": "inspectionCycleDate",
      "span": 12
    // },	  {
    //   "type": "number",
    //   "label": "保养周期(月)",
    //   maxRows: 1000000,
    //   hide: true,
    //   "prop": "maintenanceCycleDate",
    //   "span": 12
    // },	  {
    //   "type": "number",
    //   maxRows: 1000000,
    //   "label": "保养周期(公里)",
    //   hide: true,
    //   "prop": "maintenanceCycleKm",
    //   "span": 12
    },	  {
      "type": "input",
      "label": "保养周期(月/公里)",
      maxlength: 24,
      "prop": "maintenanceCycle",
      "span": 12
    // },	  {
    //   "type": "input",
    //   "label": "行驶证单位",
    //   maxlength: 128,
    //   "prop": "drivingLicense",
    //   "span": 12
    },	  {
      type: 'upload',
      width: 140,
      loadText: '附件上传中，请稍等',
      listType:'picture-img',
      accept: ["image/png","image/jpeg","image/jpg"],
      tip: '只能上传jpg，png图片不超过20MB',
      fileSize: 20480,
      propsHttp: {
          res: 'data'
      },
      canvasOption: {
        text: ' ',
        ratio: 0.1
      },
      action: "/act/file/upload",
      "label": "车辆图片",
      "prop": "carImage",
    },	  {
      type: 'upload',
      loadText: '附件上传中，请稍等',
      width: 140,
      listType:'picture-img',
      accept: ["image/png","image/jpeg","image/jpg"],
      tip: '只能上传jpg，png图片不超过20MB',
      fileSize: 20480,
      propsHttp: {
          res: 'data'
      },
      canvasOption: {
        text: ' ',
        ratio: 0.1
      },
      action: "/act/file/upload",
      "label": "行驶证图片",
      hide: true,
      "prop": "drivingImage",
    },	  {
      "type": "select",
      "label": "调度状态",
      "prop": "dispatchStatus",
      editDisabled: true,
      addDisplay: false,
      search: true,
      dicUrl: '/admin/dict/type/car_dispatch_status',
      "span": 12
    },	  {
      "type": "upload",
      "label": "附件",
      "prop": "attachment",
      accept: [],
      slot: true,
      formslot: true,
      propsHttp: {
        res: 'data',
        name: "original"
      },
      props: {
        label: "original",
        value: "url"
      },
      action: "/act/file/upload",
      listType: 'file',
      hide: true,
      "span": 24
    },	  {
      "type": "textarea",
      "label": "备注",
      hide: true,
      maxlength: 512,
      "prop": "remark",
      "span": 24
    },	  {
      "type": "select",
      "label": "状态",
      "prop": "status",
      value: '1',
      search: true,
      dicUrl: '/admin/dict/type/use_status',
      "span": 12
    },	  {
      "type": "input",
      "label": "用车起始时间",
      "prop": "useStartTime",
      editDisabled: true,
      addDisplay: false,
      hide: true,
      "span": 12
    },	  {
      "type": "input",
      "label": "用车结束时间",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "prop": "useEndTime",
      "span": 12
    },  {
      "type": "input",
      "label": "录入人",
      "prop": "createRealname",
      "span": 12,
      editDisabled: true,
      addDisplay: false
    }, {
      "type": "input",
      "label": "创建部门名称",
      "prop": "deptName",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "更新时间",
      "prop": "updateTime",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    }]
}
